package doudizhu;

import java.util.ArrayList;
import java.util.List;

public class Player {

    private int id;

    private String name;

    private List<Poker> pokerList = new ArrayList();

    public Player(){}

    public Player(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public Player(int id, String name,List<Poker> pokerList) {
        this.id = id;
        this.name = name;
        this.pokerList = pokerList;
    }

    public int getId() { return id; }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Poker> getPokerList() {
        return pokerList;
    }

    public void setPokerList(List<Poker> pokerList) {
        this.pokerList = pokerList;
    }

    @Override
    public String toString() {
        return "Player{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pokerList=" + pokerList +
                '}';
    }
}
